<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>分类管理</title>
    <hdjs/>
    <bootstrap/>
</head>
<body>
<style type="text/css">
    select{border:solid 1px #eee;border-radius: 5px;}
</style>
<div class="wrap">

<div class="page-header">
  <h3>商铺修改<small>ALTER the shops</small></h3>
</div>
   
<form action="" method="post" enctype="multipart/form-data">
   <table class="table table-bordered">
       <tr>
           <td><label for="exampleInputEmail1">商铺名称</label></td>
           <td><input type="text" name="stname" class="form-control" id="exampleInputEmail1"  value="{$defaultData.stname}"></td>
           <td><p class="help-block">1-20个字节</p></td>
           
       </tr>

       <tr>
           <td><label for="exampleInputEmail1">满汉全席</label></td>
           <td><input type="text" class="form-control" id="exampleInputEmail1" placeholder="满汉全席" name="kind" value="{$defaultData.kind}"></td>
           <td><p class="help-block">您经营商铺的菜式  如：东北菜 川菜</p></td>
        </tr>

        <tr>
           <td><label for="exampleInputEmail1">所在的栏目</label></td>
           <td>
                <select name="cnid" id="" style="width:110px;height:35px;font-size:14px;">
                <option value="0">顶级分类</option>
                <foreach from='$colums' value='$v'>
                    
                    
                    <option value="{$v.cnid}" <if value='$v.cnid==$defaultData["cnid"]'>selected='selected'</if>>{$v.title}</option>
                    </foreach>
                </select>
                </td>
           <td><p class="help-block">选择栏目分类</p></td>
           
       </tr>
        <tr>
           <td><label for="exampleInputEmail1">地区选择</label></td>
           <td>
               <select name="did" id="" style="width:110px;height:35px;font-size:14px;">
               <option value="0">顶级分类</option>
                <foreach from='$district' value='$v'>
                    
                
                    <option value="{$v.did}" <if value='$v.did==$defaultData["did"]'>selected='selected'</if>>{$v._name}</option>
                    </foreach>
                </select>
            </td>
           <td><p class="help-block">您店铺的所在区域</p></td>
           
       </tr>
        <tr>
            <td><label for="exampleInputEmail1">营业开始时间和结束时间</label></td>
            <td><input style="width:110px;float:left" type="text" class="form-control" id="exampleInputEmail1" name="businessstart" value="{$defaultData.businessstart}"><p style="width: 6px;float: left" class="help-block">-</p><input style="width:110px;float:left" type="text" class="form-control" id="exampleInputEmail1" name="businessend" value="{$defaultData.businessend}"></td>
            <td><p class="help-block">如:8:30-18:30</p></td>
        </tr>


       <tr>
           <td><label for="exampleInputEmail1">选择提供优惠</label></td>
           <td> 
          <foreach from="$tagName" value="$v">
            

          
           <label class="checkbox-inline">
              <input name="attr[]" type="checkbox" id="inlineCheckbox3" value="{$v.tid}" <if value='in_array($v["tid"],$tagArr)'>checked='checked'</if>>{$v.tname}
            </label>

            </foreach>

          <!--  <label class="checkbox-inline">
            <label class="checkbox-inline">
             <input name="favorable[]" type="checkbox" id="inlineCheckbox1" value="减"<if value='in_array("减",$array)'>checked='checked'</if>>立减优惠 
            </label>
            <label class="checkbox-inline">
              <input name="favorable[]" type="checkbox" id="inlineCheckbox2" value="免" <if value='in_array("免",$array)'>checked='checked'</if>>免配送费
            </label>
            <label class="checkbox-inline">
              <input name="favorable[]" type="checkbox" id="inlineCheckbox3" value="票" <if value='in_array("免",$array)'>checked='checked'</if>>支持开发票
            </label> -->

            </td>
           <td><p class="help-block">可以多选</p></td>
           
       </tr>

       <tr>
           <td><label for="exampleInputEmail1">商铺地址</label></td>
           <td><input type="text" class="form-control" id="exampleInputEmail1" name="storesite" value="{$defaultData.storesite}"></td>
           <td><p class="help-block">商铺详细地址</p></td>
           
       </tr>

       <tr>
           <td><label for="exampleInputEmail1">地铁地址</label></td>
           <td><input type="text" class="form-control" id="exampleInputEmail1" name="metro" value="{$defaultData.metro}"></td>
           <td><p class="help-block">地铁地址</p></td>
           
       </tr>

       <tr>
           <td><label for="exampleInputEmail1">起送价格</label></td>
           <td><input type="text" class="form-control" id="exampleInputEmail1" name="risedelivery" value="{$defaultData.risedelivery}"></td>
           <td><p class="help-block">购买金额到达到起送价时才能进行配送</p></td>
           
       </tr>

       <tr>
           <td><label for="exampleInputEmail1">配送价</label></td>
           <td><input type="text" class="form-control" id="exampleInputEmail1" name="delivery" value="{$defaultData.delivery}"></td>
           <td><p class="help-block">配送的费用</p></td>
        </tr>


        <tr>
           <td><label for="exampleInputEmail1">平均送达的时间</label></td>
           <td><input type="text" class="form-control" id="exampleInputEmail1"  name="deliverytime" value="{$defaultData.deliverytime}"></td>
           <td><p class="help-block">购买金额到达到起送价时才能进行配送</p></td>
        </tr>

        <tr>
            <td><label for="exampleInputEmail1">商铺缩略图</label></td>
            <td><input type="file" name="upload" id="exampleInputFile">
            <div class="row" style="float:left;margin-top:5px;">
              <div class="col-xs-6 col-md-3">
                <a href="#" class="thumbnail">
                  <img src="__ROOT__/{$defaultData.thumb}" >
                </a>
              </div>
             
            </div>

            </td>
            <td><p class="help-block">上传缩略图</p></td>
        </tr>

        <tr>
            <td><label for="exampleInputEmail1">商铺公告</label></td>
            <td><textarea rows="9" cols="90" id="exampleInputFile" name="bulletin">{$defaultData.bulletin}</textarea></td>
            <td><p class="help-block">商铺的公告</p></td>
        </tr>

   </table>
   
        <input type="hidden" name="stid" value="{$defaultData.stid}">
         <button type="submit" class="btn btn-primary">提交</button>
      
    </form>
</div>
</body>
</html>